package com.ikaro.tutorialgooglemaps;

import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.MapFragment;
import com.google.android.gms.maps.model.LatLng;
import com.google.android.gms.maps.model.Marker;
import com.google.android.gms.maps.model.MarkerOptions;

import android.app.Activity;
import android.os.Bundle;

public class MapaActivity extends Activity {

	private GoogleMap googleMap;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);

		setContentView(R.layout.mapa);

		// this is from another tutorial
		
		googleMap = ((MapFragment) getFragmentManager().findFragmentById(R.id.map)).getMap();
		
		final LatLng TutorialsPoint = new LatLng(-21, -57);
		Marker TP = googleMap.addMarker(new MarkerOptions().position(
				TutorialsPoint).title("TutorialsPoint"));
	}
}
